package ru.acme.lab11.exceptions;

import ru.acme.lab11.domain.account.ImmutableAccount;

public class NotEnoughFundsException extends BankException {
	
	int amount;
	ImmutableAccount account;
	
	public NotEnoughFundsException(int amount, ImmutableAccount account) {
		super();
		this.amount = amount;
		this.account = account;
	}

	public int getAmount() {
		return amount;
	}

    // XXX [MY] It's dead (unused) code. It should be removed.
	public void setAmount(int amount) {
		this.amount = amount;
	}

	public ImmutableAccount getAccount() {
		return account;
	}

    // XXX [MY] It's dead (unused) code. It should be removed.
	public void setAccount(ImmutableAccount account) {
		this.account = account;
	}

}
